/*
 * RequestHandlerChain.java
 * This file contains Boeing intellectual property. It
 * may contain information about Boeing processes that are part of the Company's
 * competitive advantage. Release of this file requires prior approval from
 * Luxoft Management. Copyright (c) 2008, The Boeing Company All Rights Reserved
 */
package chain;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.chain.Context;
import org.apache.commons.chain.impl.ChainBase;

/**
 *
 * @author dakhoa
 * @version 1.0
 */
public abstract class RequestHandlerChain extends ChainBase {

    private HttpServletRequest request;
    private HttpServletResponse response;

    @Override
    public boolean execute(Context context) throws Exception {
        return super.execute(context);
    }

    public abstract boolean execute(EDATContext ctx) throws Exception;

    public HttpServletRequest getRequest() {
        return request;
    }

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    public HttpServletResponse getResponse() {
        return response;
    }

    public void setResponse(HttpServletResponse response) {
        this.response = response;
    }
}
